import Vue from 'vue'
//重置如body默认的边距等
import 'normalize.css/normalize.css'
//饿了么
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
//全局css
import '@/styles/index.scss'

import App from './App'
import store from './store'
import router from './router'

// echarts按需引入
import * as echarts from 'echarts/core';
import { GridComponent,DatasetComponent,TooltipComponent,LegendComponent } from 'echarts/components';
import { LineChart,BarChart } from 'echarts/charts';
import { UniversalTransition } from 'echarts/features';
import { CanvasRenderer } from 'echarts/renderers';
echarts.use([GridComponent,DatasetComponent,TooltipComponent,BarChart,LegendComponent, LineChart, CanvasRenderer, UniversalTransition]);
Vue.prototype.$echarts = echarts;


import axios from 'axios';
Vue.prototype.$axios = axios;




import '@/icons'
// 权限控制
import '@/permission'

Vue.use(ElementUI)
Vue.config.productionTip = false
new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
